package cn.findviewbydream.evil.main.entity

import java.io.Serializable

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.main.entity
 * 时间：16-12-21
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：基础表->座位号（包厢号）实体
 ********************************************/
class BaseSeatEntity : Serializable
{
    var seatId = 0/*id*/
    var seat = ""/*座位*/
    var state = false/*开启状态*/

    constructor()
    constructor(seatId: Int, seat: String, state: Boolean)
    {
        this.seatId = seatId
        this.seat = seat
        this.state = state
    }

    override fun toString(): String
    {
        return "BaseSeatEntity(seatId=$seatId, seat='$seat', state=$state)"
    }

    override fun equals(other: Any?): Boolean
    {
        if (this === other) return true
        if (other?.javaClass != javaClass) return false

        other as BaseSeatEntity

        if (seatId != other.seatId) return false

        return true
    }

    override fun hashCode(): Int
    {
        return seatId
    }


}